package tiandang.core.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Serializable;


/**
 * Created by 廖师兄 2017-07-11 23:18
 */
@PropertySource("classpath:/pay.yml")
@ConfigurationProperties(prefix = "wechat.pay")
@Component
public class WechatAccountConfig implements Serializable {
  /**
   *
   */
  private static final long serialVersionUID = 1L;

  /**
   * 公众账号ID
   */
  @Value("${mpAppId}")
  private String mpAppId;

  /**
   * 商户号
   */
  @Value("${mchId}")
  private String mchId;

  /**
   * 商户密钥
   */
  @Value("${mchKey}")
  private String mchKey;

  /**
   * 商户证书路径
   */
  @Value("${keyPath}")
  private String keyPath;

  /**
   * 微信支付异步通知地址
   */
  @Value("${notifyUrl}")
  private String notifyUrl;

  public String getMpAppId() {
    return mpAppId;
  }

  public void setMpAppId(String mpAppId) {
    this.mpAppId = mpAppId;
  }

  public String getMchId() {
    return mchId;
  }

  public void setMchId(String mchId) {
    this.mchId = mchId;
  }

  public String getMchKey() {
    return mchKey;
  }

  public void setMchKey(String mchKey) {
    this.mchKey = mchKey;
  }

  public String getKeyPath() {
    return keyPath;
  }

  public void setKeyPath(String keyPath) {
    this.keyPath = keyPath;
  }

  public String getNotifyUrl() {
    return notifyUrl;
  }

  public void setNotifyUrl(String notifyUrl) {
    this.notifyUrl = notifyUrl;
  }

}
